import { createStore } from 'vuex'
import user from './user'
import calt from './calt'
import rout from './router'
import createPersistedstate from 'vuex-persistedstate'
export default createStore({

  modules: {
    user,
    calt,
    rout

  },
  plugins: [
    createPersistedstate({
      key: 'erabbit-client-pc-store',
      paths: ['user', 'cart']
    })
  ]
})
